package com.xiaohudie.SGGJUC;

import java.util.concurrent.*;

/**
 * @Author xiao hu die
 * @Date 2022/3/4 21:29
 * @Version 1.0
 */
public class MyThreadPool {

 /**主线程数量*/
 private final static Integer NUMBEROFMAINTHREADS= 3;
 /**最大线程数量*/
 private final static  Integer MAXIMUMPOOLSIZE=10;
 /**空闲线程等待时间*/
 private final static float WAITTIME=60l;
 /**阻塞队列*/
 private static BlockingQueue<Runnable> queue = new ArrayBlockingQueue<>(10);
 /**线程工厂*/
 private static ThreadFactory  threadFactory= Executors.defaultThreadFactory();
 /**拒绝策略*/
 private static ThreadPoolExecutor.DiscardOldestPolicy threadPoolExecutor = new ThreadPoolExecutor.DiscardOldestPolicy();

 public MyThreadPool() {
 }
}
